import 'package:flutter/material.dart';
import 'package:netease_music/theme/custom_colors.dart';
import 'app_colors.dart';

final lightTheme = ThemeData(
  brightness: Brightness.light,
  primaryColor: AppColors.lightPrimary,
  scaffoldBackgroundColor: AppColors.lightBackground,
  appBarTheme: const AppBarTheme(
    backgroundColor: AppColors.lightPrimary,
  ),
  textTheme: const TextTheme(
    bodyLarge: TextStyle(
      color: AppColors.lightTextColor,
      fontSize: 12,
    ),
    bodyMedium: TextStyle(
      color: AppColors.lightSubTextColor,
      fontSize: 10,
    ),
    titleLarge: TextStyle(
      fontSize: 14,
      color: Colors.black,
    ),
    titleMedium: TextStyle(
      color: Color(0xFF000000),
      fontSize: 12,
    ),
    titleSmall: TextStyle(
      color: Color(0xFF888888),
      fontSize: 12,
    ),
  ),
  extensions: [
    CustomColors(
      iconColor: Colors.white,
      secondbg: Colors.white,
      borderColor: const Color(0xFFdddddd),
      blue: const Color(0xFF3874ae),
      bottomPlayerBg: Colors.white.withOpacity(0.1),
    ),
  ],
);

final darkTheme = ThemeData(
  brightness: Brightness.dark,
  primaryColor: AppColors.darkPrimary,
  appBarTheme: const AppBarTheme(
    backgroundColor: AppColors.darkBackground,
  ),
  scaffoldBackgroundColor: AppColors.darkBackground,
  textTheme: const TextTheme(
    bodyLarge: TextStyle(
      color: AppColors.darkTextColor,
      fontSize: 12,
    ),
    bodyMedium: TextStyle(
      color: AppColors.darkSubTextColor,
      fontSize: 10,
    ),
    titleLarge: TextStyle(
      fontSize: 14,
      color: Colors.white,
    ),
    titleMedium: TextStyle(
      color: Colors.white,
      fontSize: 12,
    ),
    titleSmall: TextStyle(
      color: Color(0xFF888888),
      fontSize: 12,
    ),
  ),
  extensions: const [
    CustomColors(
      iconColor: Colors.white,
      secondbg: Color(0xFF888888),
      borderColor: AppColors.darkTextColor,
      blue: Color(0xFF3874ae),
      bottomPlayerBg: Colors.black87,
    ),
  ],
);
